<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改密码</title>
<link href="/member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/m.js"></script>
</head>

<body>
<div class="header">
  <div class="logo fl"> <a href="#" target="_self"><img src="/images/logo.png" border="0"/></a> </div>
  <div class="toplinks fr">您好，<a href="/app/?m=member&a=home"><%$userinfo.username%></a> <a href="/app/?m=member&a=logout">[退出]</a> </div>
</div>
<div class="main mt10">
  <%include file="home_side.tpl"%>
  <div class="centent">
  
    <div class="ind_do" align="center">
    
    <form id="form1" name="form1" method="post" action="">
    <table width="80%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="4"><h2>修改个人信息</h2></td>
        </tr>
      <tr>
        <td width="9%"><label>真实姓名:</label></td>
        <td width="14%"><input name="name" type="text" value="<%$userinfo.name%>" class="field_text" /></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td width="9%"><label>省份:</label></td>
        <td width="14%"><select name="province" class="province">
        <option value="">请选择</option>
        <%foreach item=val from=$province%>
    	<option value="<%$val.ProvinceName%>" pid="<%$val.ProvinceID%>"<%if $userinfo.province eq $val.ProvinceName%> selected=selected<%/if%>><%$val.ProvinceName%></option>
        <%/foreach%>
    	</select></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td width="9%"><label>城市:</label></td>
        <td width="14%"><span class="city"><select name="city" class="">
        <option value="">请选择</option>
        <%foreach item=val from=$city%>
    	<option value="<%$val.CityName%>" pid="<%$val.ProvinceID%>"<%if $userinfo.city == $val.CityName%> selected=selected<%/if%>><%$val.CityName%></option>
        <%/foreach%>
    	</select></span></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td width="9%"><label>电话:</label></td>
        <td width="14%">
            	    <input name="tel" type="text" value="<%$userinfo.tel%>"  class="field_text" /></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td width="9%"><label>传真:</label>
            	    </td>
        <td width="14%"><input name="fax" type="text" value="<%$userinfo.fax%>"  class="field_text" /></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td width="9%"><label>Email:</label>
            	    </td>
        <td width="14%"><input name="email" type="text" value="<%$userinfo.email%>"  class="field_text" /></td>
        <td width="9%"></td>
        <td width="47%"></td>
      </tr>
      <tr>
        <td colspan="4"><input type="submit" name="button" id="button" value="提交" />
         </td>
        </tr>
    </table>
    </form>
    <script language="javascript">
	city = $(".city").clone();
	$(".province").change(function(){
		var pid = $(".province option:selected").attr("pid");
		$.post('/app/?m=city&a=getcitybypid',{"pid":pid,"city":"<%$userinfo.city%>"},function(data){
			$(".city").html(data);
		});
	});
	$(".province").change();
	</script>
    </div>
    <div class="ind_dot">
      <h2>常见问题</h2>
      <ul>
      <%foreach item=val from=$faq%>
        <li><a href="<%$val.link%>" title="<%$val.title%>" target="_blank"><%$val.title%></a></li>
      <%/foreach%>
      </ul>
    </div>
  </div>
</div>
<script language="javascript" type="text/javascript" src="<%$attr.url%>/js/bot.js"></script>
</body>
</html>
